YNQ  YNQ-1.6.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups

Macros

#define SYMutex   pthread_mutex_t
 
#define syMutexTake(_m)   syMutexTakeDebug(_m, SY_LOG_FILE, SY_LOG_LINE)
 

Functions

void syMutexCreate (SYMutex *_m)
 
void syMutexDelete (SYMutex *_m)
 
void syMutexTakeDebug (SYMutex *_m, const NQ_CHAR *text, const NQ_UINT line)
 
void syMutexGive (SYMutex *_m)
 

Detailed Description

Macro Definition Documentation

#define SYMutex   pthread_mutex_t
#define syMutexTake (   _m)    syMutexTakeDebug(_m, SY_LOG_FILE, SY_LOG_LINE)

Function Documentation

void syMutexCreate ( SYMutex _m)

Create a mutual exception semaphore

Parameters
_mPointer to a semaphore variable to create
void syMutexDelete ( SYMutex _m)

Dispose a mutual exception semaphore

Parameters
_mPointer to a semaphore variable to dispose
void syMutexTakeDebug ( SYMutex _m,
const NQ_CHAR text,
const NQ_UINT  line 
)

Lock a resource protected by a mutex

Parameters
_mPointer to a mutex semaphore
textFile name for debug
lineLine number for drbug
void syMutexGive ( SYMutex _m)

Unlock a resource protected by a mutex

Parameters
_mPointer to a mutex semaphore